package cn.signalpha.modules.com.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 类说明
 *
 * @author signalpha
 */
@Getter
@AllArgsConstructor
public enum WalletTypeEnum {

    /**
     * 增加
     */
    ADD(1, "增加"),

    /**
     * 减少
     */
    SUB(2, "减少");

    private final Integer type;
	private final String name;

	public static WalletTypeEnum instance(Integer type) {
		WalletTypeEnum[] enums = values();
		for (WalletTypeEnum statusEnum : enums) {
			if (statusEnum.getType().equals(type)) {
				return statusEnum;
			}
		}
		return null;
	}
}
